﻿<Window x:Class="ZSens.ConfigOrientation"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="ConfigOrientation" Height="300" Width="300"
        ResizeMode="CanMinimize">
    <Grid>
        <ComboBox Name="joystick_cb" HorizontalAlignment="Left" Height="22" Margin="19,24,0,0" VerticalAlignment="Top" Width="121" SelectedIndex="0" RenderTransformOrigin="-0.24,-2.136" IsEnabled="{Binding ElementName=rdbtn_joystick, Path=IsChecked}">
            <ComboBoxItem Content="OrientationX"/>
            <ComboBoxItem Content="OrientationY"/>
        </ComboBox>
        <Button Content="Confirm" HorizontalAlignment="Left" Height="41" Margin="42,174,0,0" VerticalAlignment="Top" Width="88" Click="Button_Click_1"/>
        <Button Content="Cancel" HorizontalAlignment="Left" Height="41" Margin="165,174,0,0" VerticalAlignment="Top" Width="88" Click="Button_Click_2" />
        <Label Content="Decrease" HorizontalAlignment="Left" Height="28" Margin="10,128,0,0" VerticalAlignment="Top" Width="56"/>
        <TextBox Name="decrease_tb" MaxLength="20" HorizontalAlignment="Left" Height="28" Margin="71,128,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="62" RenderTransformOrigin="1.413,0.84" IsEnabled="{Binding ElementName=rdbtn_keyboard, Path=IsChecked}" IsReadOnly="True"/>
        <RadioButton Name="rdbtn_keyboard" Content="Keyboard" GroupName="Option" HorizontalAlignment="Left" Height="19" Margin="175,24,0,0" VerticalAlignment="Top" Width="117"/>
        <RadioButton Name="rdbtn_joystick" Content="JoyStick" GroupName="Option" HorizontalAlignment="Left" Height="19" Margin="175,43,0,0" VerticalAlignment="Top" Width="117"/>
        <Label Content="Increase" HorizontalAlignment="Left" Height="28" Margin="138,128,0,0" VerticalAlignment="Top" Width="70"/>
        <TextBox Name="increase_tb" MaxLength="20" HorizontalAlignment="Left" Height="28" Margin="208,128,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="62" RenderTransformOrigin="1.413,0.84" IsEnabled="{Binding IsChecked, ElementName=rdbtn_keyboard}" IsReadOnly="True"/>

    </Grid>
</Window>
